package me.kafeitu.activiti.chapter18.esb.camel.activiti;

//import org.activiti.engine.delegate.event.ActivitiEvent;
//import org.activiti.engine.delegate.event.ActivitiEventListener;
//import org.activiti.engine.delegate.event.ActivitiVariableEvent;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;

/**
 * 引擎的全局监听器
 * @author: Henry Yan
 */
//@Service
//@Transactional
public class VariableCreateListener/* implements ActivitiEventListener*/ {

//    protected Logger logger = LoggerFactory.getLogger(getClass());
//
//    public void onEvent(ActivitiEvent event) {
//        switch (event.getType()) {
//
//            case VARIABLE_CREATED:
//                ActivitiVariableEvent variableEvent = (ActivitiVariableEvent) event;
//                System.out.println("创建了变量: " + variableEvent.getVariableName() + ", 值：" + variableEvent.getVariableValue());
//                break;
//
//            default:
//                System.out.println("Event received: " + event.getType());
//        }
//    }

    public boolean isFailOnException() {
        return false;
    }
}
